package com.ktjiaoyu.service.impl;

import com.ktjiaoyu.entity.Attr;
import com.ktjiaoyu.mapper.AttrMapper;
import com.ktjiaoyu.service.AttrService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AttrServiceImpl implements AttrService {
    private static final Logger LOGGER= LoggerFactory.getLogger(SysRoleServiceImpl.class);
    @Autowired
    AttrMapper attrMapper;

    @Override
    public List<Attr> findAll() {
        try{
            return attrMapper.findAll();

        }catch (Exception e){
            LOGGER.error("执行SysRoleServiceImpl.findAll()方法异常.",e);
            throw e;
        }
    }
}
